import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css'; // 默认主题
// import '../static/css/theme-green/index.css';       // 浅绿色主题
import './assets/css/icon.css';
import './styles/publice.css'
import "babel-polyfill";

import defaultImg from '@/components/definedImg.vue'
Vue.component('defaultImg', defaultImg);

Vue.config.productionTip = false;
Vue.use(ElementUI, {
	size: 'small'
});

// 重置 组件data某个属性为初始化状态
Vue.prototype.$reset = function (root, keyName) {
  return root.$options.data()[keyName] || null
}

new Vue({
	router,
	store,
	render: h => h(App)
}).$mount('#app')
